package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 店铺可用类目品牌业务对象 erp_store_category_brand
 *
 * @author erp
 * @date 2023-07-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpStoreCategoryBrandBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandName;

    private String brandCnName;

    /**
     * 品牌id
     */
    @NotNull(message = "品牌id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long brandId;

    /**
     * 类别中文名称
     */
    @NotBlank(message = "类别中文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryCnName;

    /**
     * 类别英文名称
     */
    @NotBlank(message = "类别英文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryEnName;

    /**
     * 类别id
     */
    @NotNull(message = "类别id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 类别层级
     */
    @NotBlank(message = "类别层级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryLevel;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
